package com.garygyp.springcloud.service;

import com.garygyp.springcloud.entities.CommonResult;
import com.garygyp.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author GaryGyp
 */
@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(888888, "服务降级返回, ---PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
